/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    display: block;
    background-image: url(https://moedog.org/wp-content/themes/Kratos-alpha/static/images/index_image.png);
    background-size: cover;
    background-attachment: fixed;
}

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* 保持宽高比同时填充容器 */
}

a {
    color: #232628;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1a4466;
}

.container {
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header {
    height: 260px;
    background-color: #fff;
    border-bottom: 1px solid #e1e1e1;
    text-align: center;
    background: url('@/assets/logo.png') no-repeat center / cover;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.site-title a {
    margin-top: 50px;
    color: #252323;
}

.site-description {
    color: #666;
    font-size: 1.1rem;
}

/* 导航菜单 */
.main-nav {
    /* background-color: #9db6cb; */
    position: fixed;
    /* height: 1.9rem; */
    width: 100%;
    /* //一直将导航栏置于最顶层 */
    z-index: 999;
    /* //设置导航栏背景颜色 */
    opacity: 0.7;
    background-color: rgb(63, 66, 69);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: flex;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 0.8rem;

}

.main-nav a:hover {
    height: 10px;
    background-color: #424545;
}

.main-nav i {
    height: 10px;
    margin-right: 5px;
}


.site-title {
    margin-top: 70px;
}

.site-description {
    font-weight: 800;
    color: #010101;
}

/* 主要内容布局 */
main.container {
    display: flex;
    margin: 2rem auto;
    margin-right: 250px;
}

.content {
    flex: 5;
    margin-left: 11rem;
    margin-right: 2rem;
}

.post{
    width: 650px;
    height: 210px;
}

.sidebar {
    flex: 2;
    margin-right: 8rem;
}

.post-left {
    width: 240px;
    height: 145px;
    float: left;
    position: relative;
    overflow: hidden;
}

.post-left img {
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

/* 图片 */
.post-right {
    margin-left: 250px;
}

/* 文章样式 */
.post {
    background: white;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta span {
    margin-right: 1rem;
}

.post-meta i {
    margin-right: 3px;
}

.post-content {
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: small;
    color: #999999;
    color: rgba(0, 0, 0, 0.6);
}

.read-more {
    font-weight: bold;
}


.kratos-post-meta-new {
    padding: 3px 10px;
    border-top: 1px solid #f3f3f3;
    line-height: 27px;
    overflow: hidden;
    display: block;
    clear: both;
    font-size: 12px;
    background: rgba(253, 253, 253, .7);
}


.pull-left {
    float: left;
    margin-right: 20px;
}

.pull-right {
    float: right;
}

.pull-media {
    margin-left: auto;
}


/* 侧边栏 */

.widget {
    background: white;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.widget-title i {
    margin-right: 5px;
}

/* 搜索框 */
.widget form {
    display: flex;
}

.widget input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.widget button {
    padding: 0.5rem 1rem;
    background: #2a6496;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.widget button:hover {
    background: #1a4466;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.9rem;
}

.tag:hover {
    background: #e0e0e0;
}

/* 友情链接 */
.links {
    list-style: none;
}

.links li {
    margin-bottom: 0.5rem;
}

/* 页脚 */
.site-footer {
    background: #333;
    color: #999;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: #ccc;
}

.site-footer a:hover {
    color: white;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    main.container {
        flex-direction: column;
    }

    .content {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .main-nav li {
        flex: 1 0 auto;
        text-align: center;
    }

    .visible-lg {
        display: block !important;
    }

    /* body.custom-background {
        background-image: url(https://moedog.org/wp-content/themes/Kratos-alpha/static/images/index_image.png);
        background-size: cover;
        background-attachment: fixed;

    } */
}